﻿<Application 
    x:Class="Bulb.UI.WindowsPhone.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    xmlns:valueConverters="clr-namespace:Bulb.UI.WindowsPhone.ValueConverters">

    <Application.Resources>
        <system:String x:Key="ApplicationName">Bulby</system:String>
        <valueConverters:NativeTimeAgoValueConverter x:Key="TimeAgo" />
        <valueConverters:NativeLanguageValueConverter x:Key="Language" />
        <valueConverters:NativeInMemoryImageValueConverter x:Key="BytesToImage" />
        <valueConverters:FilePathToImageValueConverter x:Key="FilePathToImage" />
        <valueConverters:NativeVisibilityConverter x:Name="Visibility" />
        <valueConverters:NativeInvertedVisibilityConverter x:Name="InvertedVisibility" />
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>